package com.biz.primus.model.coupon.exceptions;

import com.biz.primus.base.exception.ExceptionType;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 优惠券类型ExceptionType
 *
 * @author david-liu
 */
@Getter
@AllArgsConstructor
public enum CouponTypeExceptionType implements ExceptionType {
    PARAMETER_ILLEGAL(901, "参数错误: %s"),
    COUPON_TYPE_ILLEGAL_STATE(902, "优惠券类型异常, 未找到指定的优惠券类型"),
    TIME_NOT_IN_RECEIVABLE_TIME_RANGE(903, "当前时间不在优惠券可领取的时间范围之内: %s"),
    CLOUD_SERVICE_UNAVAILABLE(904, "微服务不可用");
    private int code;

    private String description;

}
